/**
 * ArticleController.java 上午10:46:08 2012-5-1
 * Cyber Information Technology Co.,Ltd.
 *   
 *   http://www.citchina.cn
 *   citchina.org@gmail.com
 */
package cn.cit.wcif.article.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.cit.wcif.article.api.IArticleService;
import cn.cit.wcif.article.web.model.ArticleModel;
import cn.cit.wcif.common.web.AbstractController;

/**
 * @author Jonathan
 * @version 1.0
 * 
 */
@Controller
@RequestMapping("/article")
public class ArticleController extends AbstractController {
	@Autowired
	@Qualifier("articleServiceImpl")
	IArticleService articleService;

	@RequestMapping(value = NamingConventions.URL.REQUEST_PATH_ADD_FACE, method = RequestMethod.GET)
	public String addFace() {
		return NamingConventions.URL.LOCATION_PATH_ADD;
	}

	@RequestMapping(value = NamingConventions.URL.REQUEST_PATH_ADD, method = RequestMethod.GET)
	@ResponseBody
	public String addArticle(
			@ModelAttribute("articleModel") ArticleModel articleModel,
			ModelMap model) {
		return "true";
	}
}
